package com.zhinan.shiro;

import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.credential.SimpleCredentialsMatcher;

/**
 * @Description: Shiro的凭证管理器
 * @Author: ZhiNan
 * @Date: 2023-04-11 11:13
 * @Version: 1.0
 */
public class CredentialsMatcher extends SimpleCredentialsMatcher {

    /**
     * 用户登录时将使用这里的方式进行密码对比
     */
    @Override
    public boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info) {
        return super.doCredentialsMatch(token, info);
    }
}
